{{define "base/message.html"}}
{{template "base/header" .}}
<div class="layui-fluid">
    <div class="admin-box admin-message">
        <fieldset class="layui-elem-field layui-field-title">
            {{if eq .Result.code "0"}}
            <legend><i class="layui-icon layui-icon-face-smile" style="font-size: 36px; color:#5FB878; vertical-align:middle;"></i>操作成功</legend>
            {{else}}
            <legend><i class="layui-icon layui-icon-face-cry" style="font-size: 36px; color:#FFB800; vertical-align:middle;"></i>操作失败</legend>
            {{end}}
        </fieldset>
        <div class="layui-text" style="margin:30px; text-align:center">
            <p>{{ .Result.msg | html}}</p>
        </div>
        <div>
            {{if .Result.redirect_url}}
            <a class="layui-btn"  href="{{.Result.redirect_url}}">确 定</a>
            {{else}}
            <a class="layui-btn"  href="javascript:history.go(-1);">确 定</a>
            {{end}}
        </div>
    </div>
</div>
<script>
    pageCallBack = function(){
        layui.utils.redirect('{{.Result.redirect_url}}', '{{.Result.redirect_time}}');
    }
</script>
{{template "base/footer" .}}
{{end}}